package com.zimmur.service.order;



import com.zimmur.model.goods.OrderServiceParam;
import com.zimmur.model.order.Order;
import com.zimmur.model.order.OrderService;
import com.zimmur.model.order.view.CustomerServiceView;
import com.zimmur.tools.PageUtil;
/**
 * 订单售后服务
 * @author Administrator
 *
 */
public interface IOrderServiceService {
	/**
	 * 申请售后
	 * @param record
	 * @return
	 */
    int insertSelective(OrderService record);
    
    Long createOrderService(Long userId,String content,String imageS,Long orderId,String orderDetailIdS,Short isService);
    
    int updateByPrimaryKeySelective(OrderService record);
    
    int updateByOrderId(OrderService record);
    /**
     * 查询订单的售后单
     * @param userId
     * @param pageNow
     * @param 1/2=其他订单的售后单
     * @return
     */
    PageUtil<Order> selectByUserIdList(long userId,Integer pageNow,String serviceStatus,int time,String keyword);

	/**
	* <p>Title: queryByServerIdAndUserId</p>
	* <p>Description: 根据售后单号与订单id查询售后服务信息</p>
	* @param serviceId
	* @param orderId
	* @return
	*/
	OrderService queryByServerIdAndOrderId(Long serviceId, Long orderId);
	/**
	* <p>Title: queryServiceList</p>
	* <p>Description:分页查询售后列表 </p>
	* @param userId
	* @param pageNow
	* @param serviceStatus
	* @param time
	* @param keyword
	* @return
	*/
	PageUtil<CustomerServiceView> queryServiceList(OrderServiceParam param);

	/**
	* <p>Title: queryCustServiceDetail</p>
	* <p>Description: 查询订单详情信息</p>
	* @param serviceId
	* @return
	*/
	OrderService queryCustServiceDetail(Long serviceId);

	/**
	* <p>Title: queryCustServiceById</p>
	* <p>Description: </p>
	* @param serviceId
	*/
	OrderService queryCustServiceById(Long serviceId);
      
   
}
